#ifndef ButtonAndBattery_h
#define ButtonAndBattery_h
#include <String.h>
// ----------------------
#define BUTTON_PIN 6  // 按键引脚
#define BUZZER_PIN 40 // 蜂鸣器引脚
#define POWEREN_PIN 7 // 电源引脚
#define BAT_ADC_PIN 1
#define VREF 3280 // 参考电压3.3V,供电8.15V分压 2.7V:(2.7/3.3)*4095 =  3350
//--------------------- SOUND ID ---------------------
#define changeColorID 11
#define powerOnID 4
#define powerOffID 5
#define powerOffledID 1
// ---------------------- button class -------------------------
class BNT_AND_PWR
{
  public:
    void startTask();
};
void balanceCarPowerOff();
void focSelfCheckCompleted();
void turnOffRGB();

extern BNT_AND_PWR ButtonAndPower;
extern uint16_t batteryVoltage;

#endif